//
//  PlayButton.swift
//  animations
//
//  Created by Ekaterina on 16.01.2023.
//

import SwiftUI

struct PlayButton: View {
    var action: () -> Void
    
    var body: some View {
        Button(action: action) {
            Image(systemName: "play.fill").foregroundColor(.white)
            Text("Play").foregroundColor(.white)
        }
        .buttonStyle(.borderedProminent)
    }
}
